package api

import request "gitee.com/changeden/volcengine-livesaas-request-go"

type GetSilenceUserListRequest struct {
	ActivityId *int64 `json:"ActivityId"`
}
type GetSilenceUserListResponse struct {
	UserList []User `json:"UserList" gorm:"column:UserList"`
}
type User struct {
	UserID   int64  `json:"UserId" gorm:"column:UserId"`
	Nickname string `json:"Nickname" gorm:"column:Nickname"`
}

func (instance *Instance) GetSilenceUserList(data *GetSilenceUserListRequest) (*GetSilenceUserListResponse, error) {
	d := request.Data{
		Action: "GetSilenceUserListAPI",
	}
	bindQuery(&d, *data)
	var res GetSilenceUserListResponse
	err := instance.post(&d, &res)
	return &res, err
}
